package com.ruoyi.purchase.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购表对象 firm_purchase
 * 
 * @author ruoyi
 * @date 2023-07-16
 */
public class FirmPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 采购商 */
    @Excel(name = "采购商")
    private Long supplierId;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String receiptsNumber;

    /** 商品信息 */
    @Excel(name = "商品信息")
    private Long commodityId;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiptsDate;

    /** 操作员 */
    @Excel(name = "操作员")
    private String operator;

    /** 金额合计 */
    @Excel(name = "金额合计")
    private BigDecimal moneyTotal;

    /** 支付定金 */
    @Excel(name = "支付定金")
    private BigDecimal earnest;

    /** 结算账户 */
    @Excel(name = "结算账户")
    private Long accountId;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private String discountAmount;

    /** 实际支付 */
    @Excel(name = "实际支付")
    private String realAmount;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String orderRemark;

    private FirmSupplier suppliers;

    private FirmCommodity goodsList;

    public FirmCommodity getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(FirmCommodity goodsList) {
        this.goodsList = goodsList;
    }

    public FirmSupplier getSuppliers() {
        return suppliers;
    }

    public void setSuppliers(FirmSupplier suppliers) {
        this.suppliers = suppliers;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId()
    {
        return supplierId;
    }
    public void setReceiptsNumber(String receiptsNumber)
    {
        this.receiptsNumber = receiptsNumber;
    }

    public String getReceiptsNumber()
    {
        return receiptsNumber;
    }
    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setReceiptsDate(Date receiptsDate) 
    {
        this.receiptsDate = receiptsDate;
    }

    public Date getReceiptsDate() 
    {
        return receiptsDate;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setMoneyTotal(BigDecimal moneyTotal) 
    {
        this.moneyTotal = moneyTotal;
    }

    public BigDecimal getMoneyTotal() 
    {
        return moneyTotal;
    }
    public void setEarnest(BigDecimal earnest) 
    {
        this.earnest = earnest;
    }

    public BigDecimal getEarnest() 
    {
        return earnest;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setDiscountAmount(String discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public String getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setRealAmount(String realAmount) 
    {
        this.realAmount = realAmount;
    }

    public String getRealAmount() 
    {
        return realAmount;
    }
    public void setOrderRemark(String orderRemark) 
    {
        this.orderRemark = orderRemark;
    }

    public String getOrderRemark() 
    {
        return orderRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("supplierId", getSupplierId())
            .append("receiptsNumber", getReceiptsNumber())
            .append("commodityId", getCommodityId())
            .append("receiptsDate", getReceiptsDate())
            .append("operator", getOperator())
            .append("moneyTotal", getMoneyTotal())
            .append("earnest", getEarnest())
            .append("accountId", getAccountId())
            .append("state", getState())
            .append("number", getNumber())
            .append("discountAmount", getDiscountAmount())
            .append("realAmount", getRealAmount())
            .append("orderRemark", getOrderRemark())
            .toString();
    }
}
